#ifndef COMPILE_ONLINE
#include"head.cpp"
#endif

void Test1()
{
    string s = "abcabcbb";
    int ret = Solution().lengthOfLongestSubstring(s);
    if(ret == 3)
    {
        std::cout << "通过用例1,...OK!" << std::endl;
    }
    else
    {
        std::cout << "没有通过用例1!" << std::endl;
    }
}

void Test2()
{
    string s = "bbbbbb";
    int ret = Solution().lengthOfLongestSubstring(s);
    if(ret == 1)
    {
        std::cout << "通过用例2,...OK!" << std::endl;
    }
    else
    {
        std::cout << "没有通过用例2!" << std::endl;
    }
}


int main()
{
    Test1();
    Test2();
    return 0;
}